package com.ruoyi.dgw.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.dgw.domain.RegistrationFrom;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

/**
 * 养殖户信息登录Mapper接口
 * 
 * @author ll
 * @date 2022-01-02
 */
public interface RegistrationFromMapper 
{
    /**
     * 查询养殖户信息登录
     * 
     * @param id 养殖户信息登录主键
     * @return 养殖户信息登录
     */
    public RegistrationFrom selectRegistrationFromById(Long id);

    /**
     * 查询养殖户信息登录列表
     * 
     * @param registrationFrom 养殖户信息登录
     * @return 养殖户信息登录集合
     */
    public List<RegistrationFrom> selectRegistrationFromList(RegistrationFrom registrationFrom);

    /**
     * 新增养殖户信息登录
     * 
     * @param registrationFrom 养殖户信息登录
     * @return 结果
     */
    public int insertRegistrationFrom(RegistrationFrom registrationFrom);

    /**
     * 修改养殖户信息登录
     * 
     * @param registrationFrom 养殖户信息登录
     * @return 结果
     */
    public int updateRegistrationFrom(RegistrationFrom registrationFrom);

    /**
     * 删除养殖户信息登录
     * 
     * @param id 养殖户信息登录主键
     * @return 结果
     */
    public int deleteRegistrationFromById(Long id);

    /**
     * 批量删除养殖户信息登录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRegistrationFromByIds(Long[] ids);

    @MapKey("id")
    List<Map<String,String>> queryVillage(String villagesTowns);

    List<RegistrationFrom> queryUser(String village);
    Map<String,String> queryVSum(@Param("villagesTowns") String villagesTowns,@Param("village") String village);

    /**
     * @param village
     * @return
     */
    List<RegistrationFrom> queryUserName(String village);
}
